#ifndef XABSTRACTSYNTAXTREEREBREAK_H
#define XABSTRACTSYNTAXTREEREBREAK_H
#include <xscript/xabstractsyntaxtree.h>

class XAbstractSyntaxTreeBreak : public XAbstractSyntaxTree {
  public:
    XAbstractSyntaxTreeBreak(XTokenPtr inputToken);
  public:
    XAbstractSyntaxTreeType getTreeType()const override {return XAbstractSyntaxTreeType_Break;}
    bool invoke(std::shared_ptr<XVariableTable> table) override;
    bool isFilled()const override {return children.size() == 1;}
  protected:
};

#endif // XABSTRACTSYNTAXTREEREBREAK_H
